<?php
error_reporting(E_ALL);
require "news/NewsDetail.php";

$newsId = !empty($_GET['id']) ? intval($_GET['id']) : 101;

$newsDetail = new NewsDetail($newsId);

echo "<div>";
$newsDetail->display();
echo "</div>";